<form action="admin.php" id="form1" name="form1" encType="multipart/form-data"  method="post" >   
    <input name="filedata" type="file" id="filedata" onchange="document.form1.submit()" >  
    <input type="hidden" name="inid" value="{_GET['inid']}" />
<input type="hidden" name="action" value="upload" />
<input type="hidden" name="ctrl" value="execute" />         
</form> 
